<template>
	<view class="uni_box home">
		<navbar title='策略详情' backgroundColor='#566FFF'>
		</navbar>
		<view class="content">
			<view class="slist">
				<view class="shead">
					弘业期货：棉花抄底时机来了吗,弘业期货：棉花抄底时机来了吗弘业期货：棉花抄底时机来了吗弘业期和耗费字段字段
				</view>
				<u-row gutter="16" class="simglist">
					<u-col span="4" class="simgitem" v-for="(item,index) in 6" :key="index">
						<image src="/static/qi/ng.png" mode="aspectFill"></image>
					</u-col>
				</u-row>
				<view class="titem">
					<text class="time">08-10  08:31</text>
				</view>
				<view class="fitem">
					<view class="item">
						<image src="/static/qi/share.png" mode=""></image>
						<text>分享</text>
					</view>
					<view class="item">
						<image src="/static/qi/Vector.png" mode=""></image>
						<text>999+</text>
					</view>
					<view class="item dianzan" v-if="index == 0">
						<image class="zan" src="/static/qi/dianzan.png" mode=""></image>
						<text>999+</text>
					</view>
					<view class="item" v-else>
						<image class="nozan" src="/static/qi/thumbs-up.png" mode=""></image>
						<text>999+</text>
					</view>
				</view>
				<view class="pdlist">
					<text class="plun">评论</text>
					<view class="pditem" v-for="(item,index) in  10" :key="index">
						<image class="pdimg" src="/static/qi/ng.png" mode=""></image>
						<view class="pdright">
							<text class="name">李四</text>
							<text class="ptext">回复<text class="name">张三</text>：大家一起加油呢！</text>
							<text class="time">08-10  08:31</text>
						</view>
					</view>
				</view>
				
			</view>
			<view class="pbot">
				<input class="pbotinput" type="text" placeholder="说点什么吧~" />
				<view class="fasong">
					发送
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		async onLoad() {
			// let res = await this.$u.api.index();
			// // let rotation = res.rotation;
			// // let notice = res.new;

			// // rotation.forEach(item => {
			// // 	item.image = item.img;
			// // });
			// // this.swiperList = rotation;

			// // this.noticeList = [`${notice.title}:${notice.type_name}`];

			// // this.list = this.product = res.product;
			// // this.blindbox = res.blindbox;

			// // this.index = 0;
			// // this.tempData = this.list[this.index];
			// // this.handerTime();

			// this.allList = res.purchase;
			// let lists = res.top
			// for(let i in lists){
			// 	lists[i].image = lists[i].product.cover
			// 	lists[i].title = lists[i].product.class_name
			// }
			// this.headtopList = lists
			// if(this.headtopList){
			// 	this.headtop = this.headtopList[0]
			// }
			// console.log(this.headtop)
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #fff;
	}
	.wrap {
		padding: 24rpx;
	}

	.u-row {
		margin: 40rpx 0;
	}

	.demo-layout {
		height: 80rpx;
		border-radius: 8rpx;
	}

	.bg-purple {
		background: #d3dce6;
	}

	.bg-purple-light {
		background: #e5e9f2;
	}

	.bg-purple-dark {
		background: #99a9bf;
	}
	.content{
		padding-bottom: 120rpx;
		background-color: #fff;
		.slist{
			padding: 30rpx;
			margin-bottom: 20rpx;
			background-color: #fff;
			.shead{
				font-size: 28rpx;
				font-weight: 400;
				color: #333333;
			}
			.simglist{
				margin: 20rpx 0 !important;
				.simgitem{
					height: 220rpx;
					margin-bottom: 20rpx;
					padding: 0;
					image{
						width: 100%;
						height: 100%;
						border-radius: 10rpx;
					}
				}
				
			}
			.titem{
				display: flex;
				flex-direction: row;
				align-items: center;
				.time{
					font-size: 24rpx;
					font-weight: normal;
					color: #AEB0BF;
				}
			}
			.fitem{
				display: flex;
				flex-direction: row;
				align-items: center;
				justify-content: space-between;
				height: 88rpx;
				border-top: 1rpx solid #eee;
				margin-top: 10rpx;
				padding: 0 30rpx;
				.item{
					display: flex;
					align-items: center;
					flex-direction: row;
					image{
						width: 36rpx;
						height: 36rpx;
						margin-right: 10rpx;
						position: relative;
						top: -2rpx;
					}
					text{
						font-size: 26rpx;
						font-weight: 400;
						color: #70737F;
					}
				}
				.dianzan{
					text{
						font-size: 26rpx;
						font-weight: 400;
						color: #FFC300 !important;
					}
				}
			}
			.plist{
				display: flex;
				padding: 30rpx 0;
				border-top: 1rpx solid #eee;
				flex-direction: column;
				.pitem{
					display: flex;
					flex-direction: row;
					margin-bottom: 10rpx;
					font-size: 26rpx;
					font-weight: 400;
					color: #373A4D;
					.name{
						color: #566FFF;
					}
					.huifu{
						display: inline-block;
						margin: 0 10rpx;
					}
					.cont{
						max-width: 70%;
						overflow: hidden; //超出的文本隐藏
						text-overflow: ellipsis; //溢出用省略号显示
						white-space: nowrap;  // 默认不换行；
					}
				}
				.pitem:last-child{
					margin-bottom: 0;
				}
			}
		    .pdlist{
				display: flex;
				flex-direction: column;
				border-top: 1rpx solid #eee;
				.plun{
					font-size: 34rpx;
					font-weight: 500;
					color: #373A4D;
					margin-top: 30rpx;
					margin-bottom: 20rpx;
				}
				.pditem{
					display: flex;
					flex-direction: row;
					border-bottom: 1rpx solid #eee;
					padding: 20rpx 0 20rpx;
					.pdimg{
						width: 60rpx;
						height: 60rpx;
						border-radius: 50%;
						
					}
					.pdright{
						display: flex;
						flex-direction: column;
						width: 75%;
						padding-left: 20rpx;
						.name{
							font-size: 26rpx;
							font-weight: normal;
							color: #566FFF;
						}
						.ptext{
							font-size: 26rpx;
							font-weight: normal;
							color: #373A4D;
						}
						.time{
							font-size: 24rpx;
							font-weight: normal;
							color: #AEB0BF;
						}
					}
				}
			}
		}
		.pbot{
			position: fixed;
			width: 100%;
			bottom: 0;
			height: 120rpx;
			background-color: #fff;
			padding: 20rpx 30rpx;
			display: flex;
			flex-direction: row;
			align-items: center;
			box-shadow: 0px -5px 10px 0px rgba(0,0,0,0.1) !important;
			.pbotinput{
				width: 68%;
				height: 100%;
				background: #EEEEEE;
				opacity: 1;
				padding: 0 20rpx;
				font-size: 26rpx;
				border-radius: 5rpx;
			}
			.fasong{
				width: 20%;
				margin-left: auto;
				height: 100%;
				display: flex;
				align-items: center;
				justify-content: center;
				background: #566FFF;
				opacity: 1;
				font-size: 26rpx;
				font-weight: normal;
				color: #FFFFFF;
				border-radius: 10rpx;
			}
		}
	}
</style>
